<div class="layuimini-container">
    <div class="layuimini-main">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('wechat.Keyword/add')}"
               data-auth-preview="{:auth('wechat.Keyword/preview')}"
               data-auth-edit="{:auth('wechat.Keyword/edit')}"
               data-auth-delete="{:auth('wechat.Keyword/delete')}"
               lay-filter="currentTable">
        </table>
    </div>
</div>
<script type="text/html" id="preview">
    {{#  if(d.type == 'music'){ }}
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-width="320px" data-height="600px" data-title="预览" data-open='{:url("@member.WechatKeyword/previewMusic")}?type={{d.type}}url={{d.music_url}}&&title={{d.music_title}}&desc={{d.music_desc}}&image={{d.music_image}}'>预览 <i class="fa fa-eye"></i></button>
    {{#  } else if(d.type == 'text' || d.type == 'customservice'){ }}
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-width="320px" data-height="600px" data-title="预览" data-open='{:url("@member.WechatKeyword/previewText")}?type={{d.type}}&content={{d.content}}'>预览 <i class="fa fa-eye"></i></button>
    {{#  } else if(d.type == 'image'){ }}
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-width="320px" data-height="600px" data-title="预览" data-open='{:url("@member.WechatKeyword/previewImage")}?type={{d.type}}&content={{d.image_url}}'>预览 <i class="fa fa-eye"></i></button>
    {{#  } else if(d.type == 'news'){ }}
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-width="320px" data-height="600px" data-title="预览" data-open='{:url("@member.WechatKeyword/previewNews")}?type={{d.type}}&id={{d.news_id}}'>预览 <i class="fa fa-eye"></i></button>
    {{#  } else if(d.type == 'video'){ }}
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-width="320px" data-height="600px" data-title="预览" data-open='{:url("@member.WechatKeyword/previewVideo")}?type={{d.type}}&url={{d.video_url}}&desc={{d.video_desc}}&title={{d.video_title}}'>预览 <i class="fa fa-eye"></i></button>
    {{#  } else if(d.type == 'voice'){ }}
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-width="320px" data-height="600px" data-title="预览" data-open='{:url("@member.WechatKeyword/previewVoice")}?type={{d.type}}&url={{d.voice_url}}'>预览 <i class="fa fa-eye"></i></button>
    {{#  } else { }}
    {{d.keys}}
    {{#  } }}
</script>
<script>
    var miniapp_id = '{$member_miniapp_id}';
</script>